/*
发运计划固定设备

*/
import httpRequest from '@/utils/httpRequest'

// 过磅查询
export function getList (data) {
  return httpRequest({
    url: '/weight/queryWeight/list',
    method: 'get',
    params: data
  })
}
// 过磅查询
export function listChild (data) {
  return httpRequest({
    url: '/weight/queryWeight/listChild',
    method: 'get',
    params: data
  })
}
// 过磅异常查询
export function getExceptionList (data) {
  return httpRequest({
    url: '/weight/exceptionQuery/list',
    method: 'get',
    params: data
  })
}
// 根据ID查询过磅流水
export function queryTurnoverById (data) {
  return httpRequest({
    url: '/weight/queryWeight/queryById',
    method: 'get',
    params: data
  })
}
// 根据ID查询过磅异常
export function queryById (data) {
  return httpRequest({
    url: '/weight/exceptionQuery/queryById',
    method: 'get',
    params: data
  })
}
// 撤销皮重
export function tareWeightReceive (data) {
  return httpRequest({
    url: '/weight/queryWeight/tareWeightReceive',
    method: 'get',
    params: data
  })
}
// 撤销毛重
export function grossWeightReceive (data) {
  return httpRequest({
    url: '/weight/queryWeight/grossWeightReceive',
    method: 'get',
    params: data
  })
}
// 修改磅单
export function updateWeight (data) {
  return httpRequest({
    url: '/weight/queryWeight/updateWeight',
    method: 'post',
    data: data
  })
}
// 更改过磅单状态
export function modifyState (data) {
  return httpRequest({
    url: '/weight/queryWeight/modifyState',
    method: 'get',
    params: data
  })
}
// 修改过磅单
export function edit (data) {
  return httpRequest({
    url: '/weight/queryWeight/edit',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 补录磅单
export function addWeight (data) {
    return httpRequest({
        url: '/weight/queryWeight/addWeight',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}
